//将用户所有的完整路由配置在这个js文件中
//用户路由就是除了登陆界面以及404界面以外的所有带校验的路由（需要鉴权才能访问）

//什么叫做符合路由规则的配置

const allRouters = [
    {
        path: "welcome",
        component: () =>
            import(/* webpackChunkName: "welcome"*/ "../pages/Home/welcome"),
        name: "welcome",
        meta: { //存储一些属性
            fullPath: "/welcome",
            icon: "iconfont icon-shouye1",
            name: "管理首页",
        }
    },
    {
        path: "studentManager",
        component: () =>
            import(/* webpackChunkName: "studentManager"*/ "../pages/Home/StudentManager"),
        name: "studentManager",
        redirect: "/studentManager/product",
        meta: {
            fullPath: "/studentManager",
            icon: "iconfont icon-xueyuan1",
            name: "学员管理",
        },
        children:[
            {
                path:"dormitory",
                component:()=>
                import(/* webpackChunkName: "dormitory"*/ "../pages/Home/StudentManager/StudentDormitory"),
                name:"dormitory",
                meta:{
                    fullPath: "/studentManager/dormitory",
                    icon: "iconfont icon-shouye",
                    name: "学员宿舍",
                }
            },
            {
                path:"product",
                component:()=>
                import(/* webpackChunkName:"product"*/ "../pages/Home/StudentManager/StudentProduct"),
                name:"product",
                meta:{
                    fullPath: "/studentManager/product",
                    icon: "iconfont icon-shangpinguanli",
                    name: "学员项目管理",
                }
            },
            {
                path:"profill",
                component:()=>
                import(/* webpackChunkName: "profill"*/ "../pages/Home/StudentManager/StudentProfill"),
                name:"profill",
                meta:{
                    fullPath: "/studentManager/profill",
                    icon: "iconfont icon-shuju1",
                    name: "学员资料",
                }
            },
           
        ]
    },
    {
        path:"users",
        component:()=>
        import(/* webpackChunkName: "users"*/ "../pages/Home/Users"),
        name:"users",
        meta:{
            fullPath:"/users",
            icon:"iconfont icon-yonghu",
            name: "用户管理",
        }
    },
    {
        path:"attendance",
        component:()=>
        import(/* webpackChunkName: "attendance"*/ "../pages/Home/Attendance"),
        name:"attendance",
        meta:{
            fullPath:"/attendance",
            icon:"iconfont icon-kaoqin3",
            name: "考勤管理",
        }
    },
    {
        path:"statistics",
        component:()=>
        import(/* webpackChunkName: "statistics"*/ "../pages/Home/Statistics"),
        name:"statistics",
        meta:{
            fullPath:"/statistics",
            icon: "iconfont icon-shuju2",
            name: "数据统计",
        }
    },
    {
        path:"mine",
        component:()=>
        import(/* webpackChunkName: "mine"*/ "../pages/Home/Mine"),
        name:"mine",
        meta:{
            fullPath:"/mine",
            icon: "iconfont icon-wode",
            name: "我的中心",
        }
        
    }
];
export default allRouters